package com.niiwoo.civet.trade.service.dubbo.project;

import com.alibaba.dubbo.config.annotation.Service;
import com.niiwoo.civet.trade.dto.request.ProjectLifeDTO;
import com.niiwoo.civet.trade.service.local.project.ProjectLifeLocalService;
import com.niiwoo.civet.trade.service.local.project.ProjectLocalService;
import com.niiwoo.civet.trade.service.project.ProjectLifeDubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.Assert;
@Service(version = "1.0.0")
public class ProjectLifeDubboServiceImpl implements ProjectLifeDubboService{
    @Autowired
    private ProjectLifeLocalService projectLifeLocalService;
    @Override
    public void recordProjectLife(ProjectLifeDTO projectLifeDTO) {
        Assert.notNull(projectLifeDTO,"projectLifeDTO不能为空");
        Assert.notNull(projectLifeDTO.getProjectId(),"projectId不能为空");
        Assert.notNull(projectLifeDTO.getType(),"节点类型不能为空");
        Assert.notNull(projectLifeDTO.getDesc(),"节点描述不能为空");
        projectLifeLocalService.recordProjectLife(projectLifeDTO);
    }
}
